package com.tool.emulator;

import com.tool.emulator.apple2.Apple2;
import com.tool.emulator.apple2.ui.MonitorPane;
import com.tool.emulator.apple2.ui.ZoomFont;

import javax.swing.*;

/**
 * TestApple2.java @author tl 2011-6-19
 */
public class Apple2Main {
	public static void main(String[] args) throws Exception {
		final Apple2 apple2 = new Apple2();
		JFrame frm = new JFrame("AppleII emu");
		MonitorPane pane = (MonitorPane) apple2.MONITOR.getUI().getViewComponent();
		frm.setContentPane(pane);
		ZoomFont.initializ(frm);
		frm.setBounds(0, 0, 1024, 768);
		frm.setVisible(true);
		frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//apple2.CPU.setFreq(8L*apple2.CPU.getFreq());
		//apple2.CPU.setInspector(new InstrDumper(apple2.MEM));

		apple2.start();
	}

}
